package com.jxb.ractBase;

import java.util.List;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * 类注释
 *
 * @author jiaobo
 * @date Created in 2024/10/23 21:09
 **/
public class CollectListTest {

    public static void main(String[] args) {
        Mono<List<Integer>> listMono = Flux.just(3, 1, 21, 14, 25, 36, 17, 28, 19).collectList();
        listMono.subscribe(item -> {
            System.out.println(item.getClass());
            System.out.println(item);
        });
    }

}
